﻿namespace Homework02
{
    internal class Program
    {
        /// <summary>
        ///give a 30-second countdown 
        /// </summary>
        /// <param name="args"></param>
        static void Main(string[] args)
        {
                Console.WriteLine("倒计时开始");
                Thread.Sleep(1000);

                //clear the screen in order to merely display the number
                Console.Clear();

                //originate time
                int Time = 30;

                //circle 30 times
                for (int i = 0; i < 30; i++)
                {
                    Console.WriteLine(Time);
                    Time--;
                    Console.Clear();
                    Thread.Sleep(1000);
                }
        }
    }
}
